home *** CD-ROM | disk | FTP | other *** search
- Path: er5.rutgers.edu!not-for-mail
- From: wempa@eden.rutgers.edu (Force Of Nature)
- Newsgroups: comp.lang.c
- Subject: Another Character String Question
- Date: 8 Feb 1996 13:35:48 -0500
- Organization: Rutgers University
- Message-ID: <4fdfq4$mis@er5.rutgers.edu>
- NNTP-Posting-Host: er5.rutgers.edu
-
- Thanks to all who responded to my Character -> Integer Question. The function
- atoi() worked beautifully. I have another question. I need to take a pointer
- to a string of characters and add ONLY 1 additional character to it. I know
- that I can simply go down until I find the '\0' and add the extra character
- followed by the '\0'. Is there an easier way to do this ?? I tried simply
- doing:
- *temp = *text + ')';
-
- This did not work. Is there some other simple way to add characters onto the
- end of a string ???
-
- --
- --------------------------------------------------------------------
- Kristofer Wempa
- wempa@eden.rutgers.edu http://remus.rutgers.edu/~wempa
- -------------------Be Young, Have Fun, Skydive !--------------------
-